package com.ldgk.pim.data;

import java.io.Serializable;

import com.extjs.gxt.ui.client.data.BeanModelTag;

/**
 * Distribution Place entity
 * @version 1.0
 *
 */
@SuppressWarnings("serial")
public class Place implements BeanModelTag, Serializable{
    public static final int HOSPITAL=0;
    public static final int SCHOOL=1;
    public static final int CHURCH=2;
	
	/** latitude */
    private double lat;
	/** longitude */
    private double lng;
	/** place name */
    private String name;
	/** pace address */
    private String address;
	/** place phones */
    private String phones;
	/** contact person */
    private String contactPerson;
	/** e-mail address */
    private String email;
	/** free text details */
    private String details;
	/** place type (hospital, school, etc) */
	private int type;
	/** geohash */
	private String geoHash;
	/** Datastore key string */
	private long key=-1;
	
	public long getKey() {
		return key;
	}
	public void setKey(long key) {
		this.key = key;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhones() {
		return phones;
	}
	public void setPhones(String phones) {
		this.phones = phones;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	public String getGeoHash(){
		return this.geoHash;
	}
	public void setGeoHash(String geoHash){
		this.geoHash = geoHash;
	}
}